module.exports = (ctx,next) => {
	if (ctx.session.username) {
		next()
		return
	}
	ctx.body = {
		error: 0,
		data: '没有登陆'
	}
}
